package com.tarena.lbs.user.dao.repository.impl;

import com.tarena.lbs.user.dao.mapper.UserTagsMapper;
import com.tarena.lbs.user.dao.repository.UserTagsRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
@Slf4j
public class UserTagsRepositoryImpl implements UserTagsRepository {
    @Autowired
    private UserTagsMapper userTagsMapper;
    @Override
    public int countRelations(Integer userId, List<Long> tagIdList) {
        return userTagsMapper.countRelations(userId, tagIdList);
    }

    @Override
    public int save(Integer userId, List<Long> tagIdList) {
        return userTagsMapper.save(userId, tagIdList);
    }
}
